﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_Articles_Config : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!IsPostBack)
        txtCountArticle.Text = MyConfig.CountArticle.ToString();
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
      int count;
      if (!int.TryParse(txtCountArticle.Text, out count))
      {
        Myfunction.ThongBao(ltThongBao, "Nhập số lượng không hợp lệ !");
        txtCountArticle.Focus();
      }
      else
      {
        MyConfig.CountArticle = count;
      }
    }
}